using System.Collections.Generic; 
using System.Text; 
using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Project.Common; 
namespace OASys.Entity {

	/// <summary>
	/// 用户表（内部）
	/// </summary>
	public class  SysUser_Validation
	{
		

					/// <summary>
			/// 
			/// Length : 
			/// </summary>
			public virtual System.Guid	ID{get;set;}
					 
						/// <summary>
			/// 账户
			/// Length : 50
			/// </summary>
            [Required(ErrorMessage = "请输入帐户名！")]
            [Remote("RemoteCheckUserName", "SysUserManage", AdditionalFields = "ID", ErrorMessage = "此帐户名已经存在！")]
			public virtual System.String	UserAccount{get;set;}
					 
						/// <summary>
			/// 账户密码
			/// Length : 50
			/// </summary>
            [Required(ErrorMessage = "请输入密码！")]
            [StringLength(6, ErrorMessage = "密码不能超过6个字符！")]
			public virtual System.String	Password{get;set;}
					 
						/// <summary>
			/// 用户姓名
			/// Length : 50
			/// </summary>
            [Required(ErrorMessage = "请输入姓名！")]
			public virtual System.String	UserName{get;set;}
					 
						/// <summary>
			/// 移动电话
			/// Length : 20
			/// </summary>
            [RegularExpression(RegexHelper.Mobile, ErrorMessage = "请输入正确的手机号码！")]
			public virtual System.String	Mobile{get;set;}
					 
						/// <summary>
			/// 电子邮箱
			/// Length : 50
			/// </summary>
            [Required(ErrorMessage = "请输入联系邮箱！")]
            [RegularExpression(RegexHelper.Email, ErrorMessage = "请输入正确的Email格式！")]
			public virtual System.String	Email{get;set;}
					 
						/// <summary>
			/// 备忘
			/// Length : 500
			/// </summary>
			public virtual System.String	Memo{get;set;}
					 
						/// <summary>
			/// 状态
			/// Length : 
			/// </summary>
			public virtual System.Nullable<Int32>	Status{get;set;}
					 
						/// <summary>
			/// 部门ID
			/// Length : 
			/// </summary>
			public virtual System.Nullable<Guid>	DepartmentID{get;set;}
					 
						/// <summary>
			/// 账户创建人ID
			/// Length : 
			/// </summary>
			public virtual System.Nullable<Guid>	CreateUserID{get;set;}
					 
						/// <summary>
			/// 创建时间
			/// Length : 
			/// </summary>
			public virtual System.Nullable<DateTime>	CreateTime{get;set;}
					 
						/// <summary>
			/// 更新用户
			/// Length : 
			/// </summary>
			public virtual System.Nullable<Guid>	UpdateUser{get;set;}
					 
						/// <summary>
			/// 更新时间
			/// Length : 
			/// </summary>
			public virtual System.Nullable<DateTime>	UpdateDate{get;set;}
					 
				}
}
		